package cate.common.table.activity.destinygate.sheet;

import cate.common.table.ESheet;
import cate.common.table.activity.destinygate.row.DestinyGateGiftRow;

import java.util.ArrayList;
import java.util.List;

public class DestinyGateGiftSheet extends ESheet<DestinyGateGiftRow> {
    @Override
    public String getSheetName() {
        return "礼包配置";
    }

    public List<DestinyGateGiftRow> showGifts(int heroId) {
        List<DestinyGateGiftRow> gifts = new ArrayList<>();
        for (DestinyGateGiftRow row : this.list) {
            if (row.heroId == heroId) {
                gifts.add(row);
            }
        }
        return gifts;
    }


}
